﻿using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;

namespace Crgd.UAuthServer.Sdk
{
    public class IPermission
    {
        public string Id { get; set; }
        public string Name { get; set; }
        public DateTimeOffset Date { get; set; }
        public List<PermissionItem> Items { get; set; }
    }

    public class PermissionItem
    {
        public string FunctionId { get; set; }
        public string FunctionName { get; set; }
        public bool HasPermission { get; set; }

        public List<PermissionItem> Children { get; set; }
    }
}
